package com.factory.iamp.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Upload {
    private int fid;
    private String uid;
    private int tid;
    private String realname;
    private String path;
    private Timestamp created_at;

    public void insertBuild(String uid, int tid, String realname, String path) {
        this.uid = uid;
        this.tid = tid;
        this.realname = realname;
        this.path = path;
        this.created_at = new Timestamp(System.currentTimeMillis());
    }
}
